<? 
	$protectid="14"; 
	include("../protect.php");
	
	include_once("../../config.inc.php");
	
	include_once(CFG_LIB_DIR.'mysqldb.inc.php');
	$objDb = new mysqldb();
   
   $id=$_GET['id'];
   $sql="update `".con_strPREFIX."buyorder` set IsRead='".$ir."' where ID='".$id."' ";
	//echo $sql;
   $rs=$objDb->query($sql);
   if($rs){
			   echo "<script language=\"javascript\">\n";
               echo "alert('操作成功!');\n";
			   echo "location.href='index.php';\n";
               echo "</script>";
            }else{
               echo "<script language=\"javascript\">\n";
               echo "alert('操作失败!');\n";
               echo "history.go(-1);\n";
               echo "</script>";
             }

?>